from __future__ import absolute_import,unicode_literals
import os



#set the default Django settings module for the 'celery' program.
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mdscpro.settings')

app=Celery('mdscpro')

app.config_from_object('mdscpro.config',namespace="CELERY")

#Load task modules from all registered Django app configs
app.autodiscover_tasks()

@app.task(bind=True)
def debug_task(self):
    print('Request:{0!r}'.format(self.request))

#celery -A mdscpro worker -l info -P eventlet